class Course < ActiveRecord::Base
  
  has_many :course_instances, :dependent => :destroy
  
  def self.all_in_order
    find(:all, :order => "created_at DESC")
  end
  
  def self.latest_in_order (amount = 5)
    find(:all, :order => "created_at DESC", :limit => amount)
  end
  
end
